package com.comment.project.http;

import net.sf.json.JSONObject;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpParams;

/**
 * @author liupenghui
 * @date 2018/7/12
 * @desc：
 */
public class Test {
    public static void main(String[] args) {
///        HttpParams params = new BasicHttpParams();
//        params.setParameter("id", 1);
//        String content = HttpUtil.get("http://127.0.0.1:8080/api/user",params);
//

//        String content = HttpURLConnectionUtil.get("http://127.0.0.1:8080/api/user","POST","{\"id\":1}");
//        System.out.println(content);

    }
}
